package com.weilele.base.custom

import android.app.Application
import android.content.Context
import com.weilele.mvvm.LibraryConf
import com.weilele.mvvm.MvvmConf


open class BaseLibraryApp : Application() {
    override fun attachBaseContext(base: Context?) {
        //设置debug
        MvvmConf.isDebug = true
        //设置只有debug，才打印日志
        LibraryConf.enableLoggerLibrary = MvvmConf.isDebug
        //crash拦截
        MvvmConf.enableUncaughtExceptionHandler = MvvmConf.isDebug
        super.attachBaseContext(base)
    }
}